package com.itheima.gaunbing;

import java.util.concurrent.ArrayBlockingQueue;

public class Dama implements Runnable {
    ArrayBlockingQueue<String> queue;

    public Dama(ArrayBlockingQueue<String> queue) {
        this.queue=queue;
    }

    @Override
    public void run() {
        while (true){
            try {
                Thread.sleep(100);
                queue.put("灌饼");
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            //大妈 直接 把做好的灌饼 放到 保温箱即可
            System.out.println("使用自己的煎饼摊 摊了一个灌饼");
        }

    }
}
